﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleTest.Configer
{
    public class TestsConfiger:EntityTypeConfiguration<Tests>
    {
        public TestsConfiger() {
            this.ToTable(nameof(Tests));
            this.Property(e => e.Name).HasMaxLength(20);
            this.Property(e => e.Name).IsRequired();
        }
    }
}
